package com.dk.test;

import com.dk.task.MyThread01;

/**
 * 测试线程名称和休眠
 */
public class Demo01 {
    public static void main(String[] args) {
        MyThread01 t1 = new MyThread01("线程1");
        MyThread01 t2 = new MyThread01("线程2");
        t1.start();
        t2.start();

        //获取当前线程，即main线程
        System.out.println(Thread.currentThread().getName());
    }
}
